//
//  XSQTestViewController.swift
//  WeiBo
//
//  Created by 许世强 on 2017/3/28.
//  Copyright © 2017年 许世强. All rights reserved.
//

import UIKit

class XSQTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        setupNavPush()
    }
    
    //  设置导航栏push按钮
    private func setupNavPush() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    //  MARK: ---   点击push按钮的操作
    @objc private func pushAction() {
        let testVc = XSQTestViewController()
        self.navigationController?.pushViewController(testVc, animated: true)
        
        
    }
}
